import axios from "@/utils/request.js"
// 获取商品列表数据
export const getGoodsList = (pageindex) => {
  return axios({
    url: "/api/getgoods?pageindex=" + pageindex,

  })
}
// 商品详情页相关
// 商品图文介绍
export const introduction = (id) => {
  return axios({
    url: `/api/goods/getdesc/${id}`
  })
}
// 图片分享详情中的缩略图数组
export const photo = (id) => {
  return axios({
    url: `/api/getthumimages/${id}`
  })
}

// 获取商品参数区和价格，标题等数据
export const getinfo = (id) => {
  return axios({
    url: `/api/goods/getinfo/${id}`
  })
}
// 商品图文介绍
export const getdesc = id => {
  return axios({
    url: `/api/goods/getdesc/${id}`
  })
}
// 购物车列表
export const cartlist = (ids) => {
  return axios({
    url: `/api/goods/getshopcarlist/${ids}`
  })
}